import axios from 'axios'
import Vue from 'vue'
axios.defaults.baseURL = 'http://localhost:8888'

Vue.prototype.Api = {
  getLunbo(params) {
    return axios.get('/api/getlunbo', params)
  },
  getGrids(params) {
    return axios.get('/api/grids', params)
  },
  getNewsList(params) {
    return axios.get('/api/getnewslist', params)
  },
  getInfo(params) {
    return axios.get('/api/getnew/' + params)
  }
}
